package com.mvc.model;

import com.jfinal.plugin.activerecord.Model;

/** 版本-信息开关状态 */
public class Version extends Model<Version> {

	private static final long serialVersionUID = -877178582796556634L;
	public static final Version dao = new Version();

	/***
	 * 当前最新版本
	 * @return
	 */
	public Version getVesion() {
		String sql = "select * from version  where 1=1 and current=1";
		return dao.findFirst(sql);
	}

}
